package com.blb.educourseservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.common.entity.Course;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 查询所有课程
     * @return
     */
    List<Course> selectAllCourses();

    /**
     * 按id查询课程
     * @param id
     * @return
     */
    Course selectCourseById(Long id);
}
